package com.hxs.hxsserver;

import com.hxs.hxsserver.config.properties.*;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@EnableAsync
@EnableScheduling
@SpringBootApplication
@EnableTransactionManagement
@ServletComponentScan(basePackages = {"com.hxs.hxsserver.filter"})
@MapperScan(basePackages = "com.hxs.hxsserver.mapper", annotationClass = Repository.class)
@EnableConfigurationProperties({DozerProperties.class, RequestProperties.class, CorsProperties.class})
public class HxsServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(HxsServerApplication.class, args);
        log.info("---------启动成功--------------");
    }

}
